<!--<?php
print <<<EOT
-->

<script>
<!--
function opennewwin(url, frame_name) {   
    newwin=window.open(url,frame_name,"toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=yes,resizable=no,width=40,height=40,top=0,left=0"); 
}   

//-->
</script>
<td valign="top">
<table width="100%"  border="0" cellspacing="10" cellpadding="0">
<tr>
<td align="left" valign="top">
                
<table width="100%" border="0" cellspacing="0" cellpadding="0">
  <tr>
    <td height="25" valign="top" class="ytitle" colspan=3>
      Products
    </td>
  </tr>
  
  <tr>
    <td class="title01" colspan=3>
	  {$product_title}<hr size="1" noshade color="#d8e2f0">
	</td>
  </tr>
    
  <tr>
    <td class="title01" colspan=3>
      <table width="100%" border="0" cellspacing="0" cellpadding="0">
        <tr align="center" bgcolor="7FA2C9">
          <td width="43%" height="20" bgcolor="7FA2C9"><strong><font color="#FFFFFF">Course Name</font></strong></td>
          <td width="18%" height="10" bgcolor="7FA2C9"><strong><font color="#FFFFFF">Trainer</font></strong></td>
          <td width="13%" bgcolor="7FA2C9"><strong><font color="#FFFFFF"> Language</font></strong></td>
          <td width="10%" bgcolor="7FA2C9"><strong><font color="#FFFFFF"> Start on</font></strong></td>
          <td width="9%" bgcolor="7FA2C9"><strong><font color="#FFFFFF"> Country</font></strong></td>
          <td width="7%">&nbsp;</td>
        </tr>
        
        <tr>
          <td colspan="6" bgcolor="7FA2C9">
            <table width="100%" border="0" cellspacing="1" cellpadding="0">            
              
<!--
EOT;
foreach ($COURSE_ARY as $k=>$v) {    
print <<<EOT
-->   

              <tr bgcolor="EBEAEA">
                <td height="20" colspan="6" bgcolor="EBEAEA"><strong> &nbsp;&nbsp;&nbsp;&nbsp;<font color="#333333" size="2">{$v}</font></strong></td>
              </tr>

<!--
EOT;
    foreach($out_ary[$k] as $k2=>$v2) {
        $trainer_tmp = between("Trainers:", "<br>", $v2['details']);
	    if (empty($trainer_tmp)) {
	        $trainer_tmp = between("Trainer:", "<br>", $v2['details']);
	    }
	    $country_pic = getCountryPic($v2['country']);
	    //echo $country_pic;exit;

print <<<EOT
-->                 
              
              
              <tr align="center" valign="middle" bgcolor="#FFFFFF" height=40>
                <td width="43%">
                <a href="{$v2['course_link']}" target="acuityworld">{$v2['name']}</a>
                <!--a href="#" onclick="opennewwin('{$v2['course_link']}', 'acuityworld')">{$v2['name']}</a-->
                </a>
                </td>
                <td width="18%" bgcolor="#FFFFFF"><a href="{$v2['trainer_link']}" target="acuityworld"> {$trainer_tmp} </a></td>
                <td width="13%"><span class="black1">{$v2['country2']}</span></td>
                <td width="10%"><span class="black1">{$v2['date']}</span></td>
                <td width="8%">{$country_pic}</td>
                <td width="8%" bgcolor="#FFFFFF"><a href="{$cart_url}?act=addcourse&pid={$v2['id']}">
                  enroll</a><br>
                  <a href="javascript:Redirect('training_schedule_detail.php?id={$v2['id']}',3)">details<br />
                  </a></td>
              </tr>
                   
<!--
EOT;
    }
}
print <<<EOT
-->                
              
              
            </table>
          </td>
        </tr>
      </table>
    </td>
  </tr>

  
   
</table>

</td>
</tr>
</table>
</td>

<!--
EOT;
?>-->